//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.mercury.emqx.client.resp;

import lombok.Data;

import java.io.Serializable;

/**
 * @author mercury
 */
@Data
public class MqttResp<T> implements Serializable {
    private static final long serialVersionUID = 2L;
    private static final Integer SUCCESS_CODE = 0;
    private Integer code;
    private T data;

    public Boolean isOk() {
        return SUCCESS_CODE.equals(this.code);
    }

    public MqttResp() {
    }

}
